class Singleton:
    __obj = None
    __init_flag = True

    def __new__(cls,*args,**kwargs):
        print(cls.__obj)
        if cls.__obj == None:
            cls.__obj = object.__new__(cls)

        return cls.__obj

    def __init__(self,name):
        if Singleton.__init_flag:
            print('init....',self)
            self.name = name
            Singleton.__init_flag = False

p = Singleton('a')
p1 = Singleton('b')
print(p)
print(p1)

